function validate(obj) {
    var subject = $('name');
    if (subject) {
    	var slen = strlen(subject.value);
        if (slen < 1 || slen > 10) {
            alert("标题长度(1~10字符)不符合要求");
            subject.focus();
            return false;
        }
    }
	edit_save();
	upload();
}